<?php

$main_url = base_url('main');
$images_url = base_url('images');
$verify_url = base_url('verify');
$linklapor = $this->input->get('link');

if (!$this->input->valid_ip($this->input->ip_address()))
{
     echo '<div class"notvalid">You\'re using not valid IP. Please check your IP configuration</div>';
     exit(0);
}

require_once('./lib/recaptcha/recaptchalib.php');
require "./lib/src/recaptchakey.php";

$data['site_title'] = 'Laporkan Tautan - Dadan Network';
$data['site_description'] = 'Dadan Network adalah situs berbagi informasi tentang jaringan profesional antar enterpreneur indonesia';
$data['site_keywords'] = 'dadan, network, profesional, enterpreneur, produk, usaha';
$data['base_url'] = base_url();
$data['tahun_sekarang'] = date("Y");

$mapdir = "
	<a href='$main_url'>Home</a>
	&nbsp; &gt;&gt; 
	<b>Laporkan Penyalahgunaan</b>
";



$other_head = "
	<META NAME='ROBOTS' CONTENT='NOINDEX, FOLLOW' />
	<META HTTP-EQUIV='PRAGMA' CONTENT='NO-CACHE' />
	<script type='text/javascript'>
		
		function form_validate(form){
			if(form.nama.value==''){ alert('Nama Harus Diisi'); form.nama.focus(); return false; }
			if(form.email.value==''){ alert('Email harus disertakan'); form.email.focus(); return false; }
			if(form.alasan.value==''){ alert('Sertakan Pesan anda!'); form.alasan.focus(); return false; }
		}
	
	</script>
";

$data['other_head'] = $other_head;

$isipage = "
	<div id='content2'>
			<h3>Laporkan Tautan di Situs</h3>
				<div class='isicontent2'>
				 <img id='danlogo' class='pcc' alt='logo' src='$images_url/logoo.png' />
				  
				  <br>
				  <p>
					JIka anda menemukan Masalah atau penyalahgunaan dalam situs kami, mohon untuk melaporkan kepada kami.<br />Silakan isi data berikut, data anda TIDAK akan kami publikasikan dan menjamin kerahasiaan data anda. mohon mengisi dengan data sebenarnya dan alasan pelaporan.<br><br>
					Salam hangat Dadan Setia
				  </p>
				</div>
				<div class='isicontent2'>
				
				  <br>
				  <form id='FrmMasukan' 
				  action='$verify_url/lapor' method='post' onsubmit='return form_validate(this)'>
					
						<table>
							<tbody>
								<tr>
									<td class='left'>Nama</td>
									<td class='right'>: <input name='nama' type='text' title='Masukan Nama Anda' placeholder='Nama Anda' /></td>
								</tr>
								<tr>
									<td class='left'>Email</td>
									<td class='right'>: <input name='email' type='email' title='Masukan Email Anda' placeholder='Email Anda' /> </td>
								</tr>
								<tr>
									<td class='left'>Alasan Pelaporan</td>
									<td class='right'>: <textarea name='alasan' cols='30' rows='5' title='Alasan Pelaporan' placeholder='Alasan Anda'></textarea></td>
								</tr>
								<tr>
									<td class='left'>Captha</td>
									<td class='right'>: ".recaptcha_get_html($publickey)."</td>
								</tr>
								<tr>
									<td class='left'> &nbsp; 
										<input type='hidden' name='link' value='$linklapor' />
									</td>
									<td class='right'>
										<input type='submit' value='Kirim' /> 
										<input type='reset' value='Ulang' /> 
										<input type='button' value='Kembali' onclick='history.go(-1)' /> 
									</td>
								</tr>
							
							</tbody>
						</table>
						
				  </form>
				</div>
				
			</div>
";

$data['map_dir'] = $mapdir;
$data['isi_page'] = $isipage;

$this->parser->parse('template/home', $data);


/* End of file lapor.php */
/* Location: ./application/views/main/lapor.php */
